/*
 * Copyright (c) 2020-2021 imlzw@vip.qq.com jweb.cc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.template_block {
    display: inline-block;
    width: 200px;
    /*height: 260px;*/
    margin: 20px;
    border: 1px solid #393d49;
    border-radius: 9px;
    box-sizing: border-box;
    transition: all 300ms;
    position: relative;
    color: #808080;
}

.template_block:hover {
    box-shadow: 0px 0px 11px #393d49;
    cursor: pointer;
}

.template_block .template_preview {
    width: 190px;
    height: 130px;
    margin: 4px;
    border-radius: 9px;
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
    position: relative;
}

.template_block .template_title {
    bottom: 30px;
    height: 30px;
    line-height: 30px;
    display: block;
    padding: 0 10px;
    width: 198px;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    background: #166b60;
    color: white;
}

.template_block .template_title > svg {
    position: absolute;
    bottom: 33px;
    left: 7px;
}

.template_block .template_preview > img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.template_block .template_opers {
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.template_block .template_opers > span {
    height: 30px;
    line-height: 30px;
    margin: 0 5px;
}

.template_block .template_opers i {
    font-size: 16px;
}

.template_block .template_opers span:hover {
    color: #122c3d;;
}

.oper-btns i.fa {
    margin-right: 3px;
}

.oper-btns {
    margin: 20px 0 0 20px;
}

.template_block .template_update_icon {
    cursor: pointer;
    display: none;
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    line-height: 28px;
    box-sizing: border-box;
    text-align: center;
    border-radius: 100%;
    background: white;
}

.template_block .template_update_icon > svg {
    position: relative;
    top: 2px;
}

.official_template_iframe {
    border: 0;
    width: 100%;
    min-height: calc(100vh - 121px);
}

.template_page .layui-tab {
    background: white;
    margin: 0;
}

.template_page .layui-tab .layui-tab-content {
    padding: 0;
}

.official_tab_content {
    font-size: 0;
}

.template_import_dialog {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    width: 300px;
    height: 50px;
    background: #00000000;
    z-index: 10000000000;
}

.template_import_dialog:before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    background: #0000007d;
}

.template_import_dialog .layui-progress {
    top: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    left: 0;
    position: absolute;
}

.template_import_dialog .layui-progress-bar {
    background-color: #64d283;
}

.template_import_dialog .layui-progress-text {
    color: #fff;
    top: 6px;
}

.template_import_dialog .import_info_text {
    text-align: center;
    color: #fff;
    position: relative;
}